<!DOCTYPE html>
<html lang="en">
<head>
    <script type="text/javascript" th:src="@{/js/require.js}"></script>
    <script type="text/javascript" th:src="@{/js/requireConfig.js}"></script>
    <link rel="stylesheet" th:href="@{/css/sa.css}">
    <script type="text/javascript" th:src="@{/js/app/Shop/EditActive.js}"></script>
</head>
<body>
<div class="vue-box" style="display: block;">
    <div class="c-panel">
        <form class="layui-form" action="">
            <div class="layui-form-item">
                <label class="layui-form-label">活动名称</label>
                <div class="layui-input-block">
                    <input type="text" name="name" v-model="that.name" required lay-verify="required" placeholder="请输入" autocomplete="off"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">活动区间</label>
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <input type="text" name="startTime" v-model="that.startTime" id="startTime" required lay-verify="required"
                               placeholder="请输入开始时间" autocomplete="off" class="layui-input">
                    </div>
                    <div class="layui-input-inline" style="width:5px ">
                        -
                    </div>
                    <div class="layui-input-inline">
                        <input type="text" name="endTime" v-model="that.endTime" id="endTime" required  lay-verify="required" placeholder="请输入结束时间" autocomplete="off" class="layui-input">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">活动详情</label>
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <button type="button" class="layui-btn" id="upload">
                            上传图片
                        </button>
                    </div>
                    <div class="layui-input-inline" v-for="(item,i) in that.note">
                        <img v-bind:src="item" style="width: 100px;margin: 0 auto">
                        <br>
                        <br>
                        <a @click="delNote(i)" type="button" class="layui-btn layui-btn-sm layui-btn-danger">
                            删除
                        </a>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                </div>
            </div>
        </form>
    </div>
</div>
</body>
</html>